package cn.wolfcode.trip.api.controller;

import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.TravelCommondQueryObject;
import cn.wolfcode.trip.base.service.ITravelCommendService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/travelCommonds")
public class TravelCommondController {

    @Autowired
    private ITravelCommendService travelCommendService;

    /**
     * 查询已经推荐的游记111
     *
     * @param qo
     * @return
     */
    @GetMapping
    public PageInfo<TravelCommend> listAllReleaseTravel(TravelCommondQueryObject qo) {
        return travelCommendService.queryForAppList(qo);
    }
}
